package com.ocom.webapi.service.impl;

import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.constant.MapKey;
import com.ocom.common.resp.Result;
import com.ocom.security.utils.SecurityUtils;
import com.ocom.webapi.feign.AccessClientService;
import com.ocom.webapi.service.FileDownLoadService;
import com.ocom.webapi.vo.filedownload.GetDownLoadListVo;
import com.ocom.webapi.vo.filedownload.UpdateFileStatusVo;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;
import java.util.Map;

@Service
public class FileDownLoadServiceImpl implements FileDownLoadService {
    @Autowired
    private AccessClientService accessClientService;

    /**
     * 获取列表 （/getDownLoadList）
     */
    @Override
    public Result GetDownLoadList(GetDownLoadListVo getDownLoadListVo) {
        getDownLoadListVo.setPId(SecurityUtils.getYoCiUser().getId());
        return accessClientService.GetDownLoadList(getDownLoadListVo);
    }

}
